﻿
@{
    Layout = null;
}
@model IVBlog.Models.Admin
<!DOCTYPE html>


<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>IV的小茶社后台登录</title>
    <link rel="icon" type="image/ico" href="~/img/IV.ico">
    <link href="~/css/font.css" rel="stylesheet" />
    <link href="~/css/login.css" rel="stylesheet" />
    <link href="~/css/xadmin.css" rel="stylesheet" />
    <link href="~/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/layui/layui.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
<body class="login-bg">
@using (Html.BeginForm("Login", "Personal", FormMethod.Post))    
{
<div class="login layui-anim layui-anim-up">
    <div class="message">IV的小茶社后台登录</div>
    <div id="darkbannerwrap"></div>
    <div class="layui-form">
        @Html.TextBoxFor(m => m.Aaccount, new { @class = "layui-input", placeholder = "管理员账号" })
        <span style="color:red">
            @Html.ValidationMessageFor(m => m.Aaccount)
        </span>
        <hr class="hr15" />
        @Html.PasswordFor(m => m.Apassword, new { @class = "layui-input", placeholder = "管理员密码" })
        <span style="color:red">
            @Html.ValidationMessageFor(m => m.Apassword)
        </span>
        <hr class="hr15" />
        <span style="color:red">
            @if (TempData["LoginState"] != null)
            {
                <script>
                    alert('禁止未登录访问！');
                </script>
                @*<span>@TempData["LoginState"]</span>*@
            }
            @TempData["Error"]
        </span>
        
        <input type="submit" id="Button1" style="width:100%;" class="layui-btn" value="登录" />
        <hr class="hr20" />
    </div>
</div>
}
</body>
</html>
